home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit / C Sources / SVEditWindow.h < prev   
Encoding:
C/C++ Source or Header  |  1994-02-25  |  2.2 KB  |  91 lines  |  [TEXT/MPS ]

  1. /*
  2.     SVEditWindow.h
  3.     
  4.     Version 3.0d9
  5.     
  6.     Copyright © SRL Data 1992, 1993
  7.     
  8.     All rights reserved
  9.     
  10.     Produced by : SRL Data
  11.     Originally Developed for UK.DTS
  12. */
  13.  
  14.   /*The window and text handling routines for the SVEdit example program*/
  15.  
  16.     /*
  17.         New for 3.0d2
  18.         
  19.         19-Feb-92 : NH    : Implement PrintWindow
  20.                       Change PageStarts to PageEnds
  21.                       Fix out by one in GetPageEnds
  22.                                             
  23.         26-Feb-92    : NH    : Put in final printing implementation
  24.                                         : Fix inThumb scrolling
  25.                                         : Put in kTextOffset to replace kTextMargin for better borders
  26.                                         
  27.         28-Feb-92 : NH  : gCurrSection zapped - Incoming AppleEvents make keeping track
  28.                           via a global very messy. Now check to see when in a section as
  29.                                             required.
  30.                                             
  31.         New for 3.0d3
  32.         
  33.         07-Apr-92 : NH  : PrPicFile added to PrintWindow.
  34.         
  35.          3-Jun-92 : NH  : Fixed bug in DrawPageBreaks (kTextOffset added twice)
  36.                                              Put in progress dialog for printing.
  37.         
  38.         New for 3.0d4
  39.         
  40.         05-Aug-92 : NH  : Param added to newDocument for increment of doc count
  41.                           DoActivate moved from SVEditMain.c
  42.     */
  43.     
  44. #ifndef __SVEDITWINDOW__
  45. #define __SVEDITWINDOW__
  46.     
  47. #include <Memory.h>
  48. #include <Types.h>
  49. #include <Quickdraw.h>
  50. #include <Fonts.h>
  51. #include <ToolUtils.h>
  52. #include <Traps.h>
  53. #include "SVEditGlobals.h"
  54. #include "SVEditUtils.h"
  55. #include "SVEditions.h"
  56. #include "SVAppleEvents.h"
  57.  
  58. pascal DPtr DPtrFromWindowPtr(WindowPtr w);
  59.  
  60. pascal void MyGrowWindow(WindowPtr w,
  61.                          Point     p);
  62.  
  63. pascal void DoZoom(WindowPtr w, short c, Point p);
  64.  
  65. pascal void DoContent(WindowPtr theWindow, EventRecord theEvent);
  66.  
  67. pascal OSErr DoActivate(WindowPtr theWindow, Boolean   activate);
  68.  
  69. pascal void DoUpdate(DPtr theDoc);
  70.  
  71. pascal DPtr NewDocument(Boolean isForOldDoc);
  72.  
  73. pascal void CloseMyWindow(WindowPtr aWindow);
  74.  
  75. pascal void ShowSelect(DPtr theDoc);
  76.  
  77. pascal void AdjustScrollbars(DPtr theDoc, Boolean needsResize);
  78.                                                      
  79. pascal void GetWinContentRect(WindowPtr theWindow, Rect *r);
  80.  
  81. pascal void ResizeWindow(DPtr theDoc);
  82.  
  83. pascal void ResizePageSetupForDocument(DPtr theDoc);
  84.  
  85. pascal void InvalidateDocument(DPtr theDoc);
  86.  
  87. pascal void DrawPageExtras(DPtr theDoc);
  88.  
  89. pascal void PrintWindow(DPtr theDoc, Boolean askUser);
  90.  
  91. #endif